<%--
  Created by IntelliJ IDEA.
  User: ZSXM
  Date: 2018/6/10
  Time: 15:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="autoorder.zsxmlv.po.Order"%>
<%@ page import="autoorder.zsxmlv.po.Account"%>
<%@ page import="autoorder.zsxmlv.po.Goods"%>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%

    Goods goods = (Goods) request.getAttribute("goods");
    Account account = (Account) request.getAttribute("account");
    Order order = (Order) request.getAttribute("order");

%>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title><%=goods.getGoodsName()%></title>
    <link rel="stylesheet" href="/zs/admin2/layui/css/layui.css" media="all">
    <script src="/zs/admin2/layui/layui.js"></script>
    <style>
        .title{height: 50px;line-height: 50px;text-align: center;background: rgb(111,200,80);font-weight: bold;font-size: 18px;color: #fff;box-shadow: 0 5px 5px #eee;}
        .price{height: 45px;line-height: 45px;background: rgb(255,250,246);margin-top: 10px;padding-left: 10px;font-weight: bold;font-size: 15px;color: #d87f0e;}
        .goods{height: 45px;margin-top: 5px;padding: 10px;background: #dad3d326;color: #676464;}
        .account{height: 45px;line-height: 45px;padding-left: 10px;background: #ebffd7;color: #5c7b77;margin-top: 5px;}
        .img{text-align: center;margin-top: 20px;}
    </style>
</head>
<body>
    <div class="layui-row">
        <div class="layui-col-sm12">
            <div class="title">订单支付</div>

            <div class="price">订单总额：￥<%=order.getGoodsPrice()%></div>
            <div class="account">下单账号：<%=account.getCustname()%></div>
            <div class="account">下单时间：<%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(order.getCreateTime())%> <span style="color: red">请尽快支付</span></div>
            <div class="goods">商品：<%=goods.getGoodsName()%></div>

            <div class="img">
                <img src="<%=order.getQrCode()%>" alt="">
            </div>
        </div>
    </div>
</body>
</html>
